package edu.gyc.testthread;

import java.util.ArrayList;
import java.util.List;


public class Test1 {

    public static void main(String[] args) {
        Long start=System.currentTimeMillis();
        long sum=0;
        for (int i = 1; i <=100000000; i++) {
           sum+=i;
        }

        System.out.println("sum="+sum+" expire: "+(System.currentTimeMillis()-start)+"ms.");
    }
}
